package com.sg.dto.biz.bff.common;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.Objects;

/**
 * @desc BffTenantHolidaySetDto
 * @使用场景
 */
@Data
public class BffTenantHolidaySetDto implements Serializable {

    /**
     * 节假日设置策略ID
     */
    @ApiModelProperty("节假日设置策略ID")
    private String holidayStrategyId;

    /**
     * 节假日周期类型
     */
    @ApiModelProperty("节假日周期类型")
    private String holidayCycleType;

    /**
     * 汇报时间处理策略 REPORT_IN_ADVANCE:提前汇报 NORMAL_REPORTING:正常汇报 DELAY_REPORTING:延后汇报
     */
    @ApiModelProperty("汇报时间处理策略")
    private String reportTimeHandlingStrategy;

    /**
     * 主体生命周期 CURRENTLY_VALID:当前有效 EDITING:正在编辑 ARCHIVING:历史存档
     */
    @ApiModelProperty("主体生命周期")
    private String subjectLifeCycle;

    /**
     * 操作人就职记录ID
     */
    @ApiModelProperty("操作人就职记录ID")
    private String operationInductionId;

    /**
     * 个人账号ID
     */
    @ApiModelProperty("个人账号ID")
    private String userId;

    /**
     * 真实头像
     */
    @ApiModelProperty("真实头像")
    private String userFace;

    /**
     * 真实姓名
     */
    @ApiModelProperty("真实姓名")
    private String idCardName;

    /**
     * 用户昵称
     */
    @ApiModelProperty("用户昵称")
    private String nickName;

    /**
     * 操作时间
     */
    @ApiModelProperty("操作时间")
    private Date operateTime;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        if (!super.equals(o)) return false;
        BffTenantHolidaySetDto that = (BffTenantHolidaySetDto) o;
        return holidayStrategyId == that.holidayStrategyId && holidayCycleType == that.holidayCycleType && reportTimeHandlingStrategy == that.reportTimeHandlingStrategy && subjectLifeCycle == that.subjectLifeCycle && operationInductionId == that.operationInductionId && userId == that.userId && userFace == that.userFace && idCardName == that.idCardName && nickName == that.nickName && operateTime == that.operateTime;
    }

    @Override
    public int hashCode() {
        return Objects.hash(super.hashCode(), holidayStrategyId, holidayCycleType, reportTimeHandlingStrategy, subjectLifeCycle, operationInductionId, userId, userFace, idCardName, nickName, operateTime);
    }

}
